package com.cat.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cat.entity.Employee;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;


public interface EmployeeMapper extends BaseMapper<Employee> {
    @Update("update Employee set login_error_count = login_error_count + #{i} ${ew.customSqlSegment}")
    void updateLoginErrorCount(@Param("i") int i, @Param("ew") LambdaQueryWrapper<Employee> employeeQueryWrapper);
}
